// import actions from "../actions";

const initialState = ""; //存储token
export const login = (state = initialState, actions) => {
  switch (actions.type) {
    case "login/setToken":
      return actions.payload;
    case "clearToken":
      return initialState;
    default:
      return state;
  }
};
